<h1>Listing attributes</h1>

<table>
  <tr>
    <th>Name</th>
  </tr>

<% for attribute in @attributes %>
  <tr>
    <td><%=h attribute.name %></td>
    <td><%= link_to 'Show', attribute %></td>
    <td><%= link_to 'Edit', edit_attribute_path(attribute) %></td>
    <td><%= link_to 'Destroy', attribute, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New attribute', new_attribute_path %>
